//
//  GGRootUIService.m
//  TestAppDelegateService
//
//  Created by yuemei on 2017/9/21.
//  Copyright © 2017年 yuemei. All rights reserved.
//

#import "GGRootUIService.h"
#import "GGMainViewController.h"
@interface GGRootUIService()

@end

@implementation GGRootUIService
    
//+ (void)load {
//
//    [[GGAppServiceManager sharedAppServiceManager] registerService:[self new]];
//}
//- (NSString *)serviceName {
//
//    return @"rootUI";
//}
GG_EXPORT_SERVICE(@"rootUI")

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    
    UIWindow *window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    window.backgroundColor = [UIColor whiteColor];
    [window makeKeyAndVisible];
    GGMainViewController *mainVC = [[GGMainViewController alloc] init];
    window.rootViewController = mainVC;
    [[UIApplication sharedApplication] delegate].window  = window;
    return YES;
}




    
@end
